<template>
    <div class="thesaurus">
        <el-tabs v-model="activeName">
            <el-tab-pane label="专业名词" name="profession" v-if="menuAuthCodes.includes('M59')"></el-tab-pane>
            <el-tab-pane label="规则限定词库" name="rulesThesaurus" v-if="menuAuthCodes.includes('M59')"></el-tab-pane>
        </el-tabs>
        <component :is="activeName"></component>
    </div>
</template>

<script>
import profession from "./profession.vue";
import rulesThesaurus from "./rulesThesaurus.vue";
import blank from "@/components/Blank";
export default {
    name: "thesaurus",
    data() {
        return {
            activeName: "profession",
        }
    },
    created() {
        if (this.menuAuthCodes.includes('M59')) {
            this.activeName = "profession";
        } else if (true) {
            this.activeName = "rulesThesaurus";
        } else {
            this.activeName = "blank";
        }
    },
    components: {
        profession,
        rulesThesaurus,
        blank
    }
}
</script>

<style lang="scss">
</style>
